﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Codeplex.Controls;assembly=Codeplex.Controls.Adorner">

    <Style TargetType="local:Adorner">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:Adorner">

                    <Grid>

                        <Grid.RowDefinitions>
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition />
                            <ColumnDefinition />
                            <ColumnDefinition />
                        </Grid.ColumnDefinitions>

                        <Border Grid.Row="0" Grid.Column="0" x:Name="TopLeftAdorner"/>
                        <Border Grid.Row="0" Grid.Column="1" x:Name="TopCenterAdorner" />
                        <Border Grid.Row="0" Grid.Column="2" x:Name="TopRightAdorner" />
                        <Border Grid.Row="1" Grid.Column="0" x:Name="CenterLeftAdorner" />
                        <Border Grid.Row="1" Grid.Column="1" x:Name="ContentBorder" BorderThickness="2" BorderBrush="Blue" IsHitTestVisible="False" />
                        <Border Grid.Row="1" Grid.Column="2" x:Name="CenterRightAdorner" />
                        <Border Grid.Row="2" Grid.Column="0" x:Name="BottomLeftAdorner" />
                        <Border Grid.Row="2" Grid.Column="1" x:Name="BottomCenterAdorner" />
                        <Border Grid.Row="2" Grid.Column="2" x:Name="BottomRightAdorner" />

                    </Grid>

                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
